package com.shujia.letter;

public class DepsitThread extends Thread {
    Account account;
    int money;

    public DepsitThread(String name, Account account, int money) {
        super(name);
        this.account = account;
        this.money = money;
    }

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            account.depsit(money);
        }
    }
}
